package edu.sctu.practice.class01.renpingan.test01.wumingfen;

/**
 * Created by Administrator on 2015/10/15.
 */
public class WuMingFen {
    public String StringtheMa;
    public int intquantity;
    public boolean booleanlikeSoup;

    public WuMingFen(String StringtheMa, int intquantity, boolean booleanlikeSoup) {
        this.booleanlikeSoup = booleanlikeSoup;
        this.StringtheMa = StringtheMa;
        this.intquantity = intquantity;
    }
    public void check(){
        String t = "是";
        String f = "否";
        String info = booleanlikeSoup==true?t:f;
        System.out.println("面码为："+StringtheMa+" 分量为："+intquantity+"两 "+" 是否要汤："+info);
    }

}
